# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.
class BookInfo(models.Model):

    btitle = models.CharField(max_length=20,verbose_name='书名')
    book_btitle = models.CharField(max_length=20,verbose_name='图书名字')
    book_people = models.CharField(max_length=20,verbose_name='书中的人物')
    bpub_date = models.DateField(verbose_name='发布日期')
    bread = models.IntegerField(default=0,verbose_name='阅读量')
    bcomment = models.IntegerField(default=0,verbose_name='评论量')
    is_delete = models.BooleanField(default=False,verbose_name='逻辑删除')

    class Meta:
        db_table = 'tb_books'

    def __str__(self):
        return self.btitle